﻿@{
    ViewBag.Title = "Thêm sản phẩm";
    Layout = "~/Views/Shared/_Adminlayout.cshtml";
}

<script src="~/Scripts/jquery-1.9.1.js"></script>

<div class="row">
    <div class="col-lg-6">
        @using (@Html.BeginForm("Them", "Admin", FormMethod.Post))
{

    <h1>Thêm sản phẩm</h1>

    <div class="form-group">
        <label>Tên sản phẩm</label>
        <input class="form-control" name="ten">
    </div>
    <div class="form-group">
        <label>ID cha</label>
        <select id="Select1" class="form-control" name="idcha">
            @foreach (var item in ViewBag.idcha)
            {
                <option value="@item.id">@item.ten</option>
            }

        </select>

    </div>


    <button type="submit" class="btn btn-default">Thêm</button>
}
    </div>
    <div class="col-lg-6" id="content">

    </div>
</div>

